/*
 *Copyright © 2015 Zhaorongbao
 *招融宝
 *http://www.hanhainet.com/
 *All rights reserved.
 */
package com.hanhai.common.consts;

public class GlobalConst {
    //ut,user token
	// 前端Cookie名称
	public static final String FrontCookieName = "zrb_front_ut";
	// 后端Cookie名称
	public static final String BackendCookieName = "zrb_backend_ut";
	
	// 后端Cookie名称
	public static final String crmCookieName = "hanhai_crm_ut";


	// AES算法需要的KEY
	public static final String FRONT_AES_KEY = "ZAQWSXCDERFVBGTY";
	public static final String BACKEND_AES_KEY = "ZAQWSXCDERFVBGTY";
	public static final String CRM_AES_KEY = "ZAQWSXCDERFVBGTY";
	public static final String ERR_MSG = "config/businessException";
	// TODO 为什么必须是16位
	public static final String CAPTCHA_KEY = "captcha_key11111";
	public static final String TEMPLATE_PATH = "/WEB-INF/template/";
	
	public static final String IS_LOCAL = "isLocal";
	public static final String FRONT_STATIC_URL = "frontStaticUrl";
	public static final String LOGIN_STATIC_URL ="loginStaticUrl";
	public static final String BACKEND_STATIC_URL = "backendStaticUrl";
	public static final String MOBILE_STATIC_URL = "mobileStaticUrl";
	
	public static final String LOGIN_DOMAIN = "loginDomain";
	public static final String FRONT_DOMAIN = "frontDomain";
	public static final String BACKEND_DOMAIN = "backendDomain";
	public static final String MOBILE_DOMAIN = "mobileDomain";
	public static final String FRONT_HOME_URL = "frontHomeUrl";
	/**记住密码，保持登录N天，Front用**/
	public static final int KEEP_LOGIN_TIME_FRONT = 3*24*60*60;
	/**记住密码，保持登录N天,Backend用**/
	public static final int KEEP_LOGIN_TIME_BACKEND = 1*24*60*60;
	/**默认保持登录10分钟,Backend用**/
	public static final int SESSION_TIMEOUT_SECONDS_BACKEND = 2*60 * 60;
	/**默认保持登录10分钟，Front用**/
	public static final int SESSION_TIMEOUT_SECONDS_FRONT= 60 * 60 * 24*3;
	/**浏览器会话有效的Session时间*/
	public static final int BROWSER_SESSION_MAX_AGE = -1;
	public static final String P2P_DOMAIN = "p2p.domain";
	public static final String ZHAORONGBAO_DOMAIN = "zhaorongbao.domain";
	
	public static final String HANHAI_DOMAIN = "hanhai.domain";

	public static final String BIZ_KEY_SEPERATOR=":";
}
